package com.cjw.controller.soulRead;

import com.cjw.config.annotation.OperationLogAnnotation;
import com.cjw.pojo.dto.soulread.TagListDTO;
import com.cjw.service.soulread.TagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author : cjw
 * @date: : 2022/1/28 19:34
 * @description : 标签资源
 */
@RestController
@RequestMapping("/user/tag")
@Api("标签资源")
public class TagController {

    @Autowired
    private TagService tagService;

    @GetMapping("/findAllTags")
    @ApiOperation("查看全部标签")
    @OperationLogAnnotation(operModul = "心灵倾听-心灵分享",operType = "查看全部标签",operDesc = "查询")
    public List<TagListDTO> findAllTags() {
        return tagService.getTagListDTO();
    }

}
